package com.orangelife.service.base.data;

import java.sql.SQLException;

public class DataColumn {
	private String Name = "";
	private String TableName = "";

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public String getTableName() {
		return TableName;
	}

	public void setTableName(String tableName) {
		TableName = tableName;
	}

	public DataColumn(String name, String tableName) {
		this.Name = name;
		this.TableName = tableName;
	}

	public DataColumn(java.sql.ResultSetMetaData rsmd, int ColumnIndex)
			throws SQLException {
		try {
			this.Name = rsmd.getColumnName(ColumnIndex + 1);
			this.TableName = rsmd.getTableName(ColumnIndex + 1);
		} catch (SQLException se) {
			throw se;
		}
	}
}
